home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-01-22 | 3.5 KB | 91 lines | [TEXT/R*ch] |
- This is a partial listing of the EPS Fixer scripting dictionary.
- I've included some additional notes below. Most of the core
- and required suites are not shown in this document.
- I've not defined any custom events because everything
- can be done using set and get data commands.
-
- get: Get the data for an object
- get reference -- the object whose data is to be returned
- Result: -- The data from the object
-
- set: Set an object╒s data
- set reference -- the object to change
- to anything -- the new value
-
- paste: paste into an object
- paste reference -- the object to paste into
-
- open: Open the specified object(s)
- open reference -- Objects to open. Can be a list of files or an object specifier.
-
- Class window: A Window
- Properties:
- bounds bounding rectangle -- the boundary rectangle for the window
- closeable boolean [r/o] -- Does the window have a close box?
- titled boolean [r/o] -- Does the window have a title bar?
- index integer -- the number of the window
- floating boolean [r/o] -- Does the window float?
- modal boolean [r/o] -- Is the window modal?
- resizable boolean [r/o] -- Is the window resizable?
- zoomable boolean [r/o] -- Is the window zoomable?
- zoomed boolean -- Is the window zoomed?
- name string [r/o] -- the title of the window
- visible boolean -- is the window visible?
- position point -- upper left coordinates of window
- **** Window Notes ****
- The status window may be accessed as ' window "Status" ' Saving
- and closing may be done using a window object, but using the document
- may be better.
-
-
- Class document: A Document
- Properties:
- name string [r/o] -- the title of the document
- modified boolean [r/o] -- Has the document been modified since the last save?
- preview picture -- The PICT preview
- bounding box bounding rectangle -- The EPS bounding box
- PICT rectangle bounding rectangle -- The rectangle for the PICT preview
- has EPSI boolean [r/o] -- Whether or not the file has an EPSI preview
- has text preview boolean [r/o] -- Whether or not the file has any text preview
- has PICT preview boolean [r/o] -- Whether or not the file has a PICT preview
- *** Document Notes ***
- A document corresponds to a particular EPS file. You can use the
- frontWindowName property to access documents generically. For
- example, to load a file, and set the PICT rectangle to the bounding box, you
- can do the following:
-
- tell application "EPS Fixer"
- open "My Disk:My Folder Path:My EPS File"
- tell document frontWindowName
- set PICT rectangle to bounding box
- end tell
- close document frontWindowName
- end tell
-
- This will also work between documents:
-
- tell application "EPS Fixer"
- open "My Disk:My Folder Path:My EPS File"
- tell document frontWindowName
- set PICT rectangle to bounding box of "some other document"
- end tell
- close document frontWindowName
- end tell
-
-
- Class application: Application properties
- Elements:
- window by numeric index, by name
- document by name
- Properties:
- frontWindowName string [r/o] -- the name of the front window
- showStatus boolean -- show status window on startup
- uponOpening do nothing/set PICT to bounding box/set bounding box to PICT -- what to do to an epsf file when it is opened
- uponModifying do nothing/set PICT to bounding box/set bounding box to PICT -- what to do to an epsf file when a picture is pasted into the file
- findPreview boolean -- always look for a text preview
- *** Application Notes ***
- The frontWindowName property always contains the name of the front
- window.
- The remaining parameters correspond to the settings in the preferences
- dialog.
-